package com.example.mybatisplusdemo.model.dto;

import java.math.BigDecimal;

public class CartItemDTO {
    private Long productId;
    private Integer quantity;
    private BigDecimal finalPrice; // 实付单价（考虑商品折扣 + 会员折扣）
    private Boolean pointsMall;    // 是否积分商品
    private Integer pointsPrice;   // 单个所需积分
    private Long cartItemId;       // 购物车记录ID，用于清除
    private Long orderId;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getFinalPrice() {
        return finalPrice;
    }

    public void setFinalPrice(BigDecimal finalPrice) {
        this.finalPrice = finalPrice;
    }

    public Boolean getPointsMall() {
        return pointsMall;
    }

    public void setPointsMall(Boolean pointsMall) {
        this.pointsMall = pointsMall;
    }

    public Integer getPointsPrice() {
        return pointsPrice;
    }

    public void setPointsPrice(Integer pointsPrice) {
        this.pointsPrice = pointsPrice;
    }

    public Long getCartItemId() {
        return cartItemId;
    }

    public void setCartItemId(Long cartItemId) {
        this.cartItemId = cartItemId;
    }
}
